<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="__PUBLIC__/admin/css/pintuer.css">
<link rel="stylesheet" href="__PUBLIC__/admin/css/admin.css">
<script src="__PUBLIC__/admin/js/jquery.js"></script>
<script src="__PUBLIC__/admin/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改内容</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="{:url('admin/Rule/edit_admin')}">  
      <div class="form-group">
        <div class="label">
          <label>用户名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{$user_data.username}" name="username" data-validate="required:用户名" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>密码：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="password" placeholder="如无需修改则为空即可" />
        </div>
      </div>
      <div class="clear"></div>
      <div class="form-group">
        <div class="label">
          <label>QQ：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="qq" value="{$user_data.qq}" />
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>邮箱：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="email" value="{$user_data.email}" />
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>加密因子：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="salt" value="{$user_data.salt}" />
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>是否允许登录：</label>
        </div>
        <div class="field">
          <input type="radio"  name="status" value="1" {if condition="$user_data['status'] eq 1"}checked="checked"{/if} />是
          <input type="radio"  name="status" value="0" {if condition="$user_data['status'] eq 0"}checked="checked"{/if}/>否
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>所属分组：</label>
        </div>
        <div class="field">
          {volist name="group" id="v"}
            {$v['title']}
            <input class="xb-icheck" type="checkbox" name="group_id" value="{$v['id']}" 
              {if condition="$user_data['group'] eq $v['id']"}checked="checked"{/if}
            >
            &emsp;
        	{/volist}
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <input type="hidden" value="{$user_data.id}" name="id">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>

</body></html>